﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000329 RID: 809
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CMKJGNPDMDF : IMessage<CMKJGNPDMDF>, IMessage, IEquatable<CMKJGNPDMDF>, IDeepCloneable<CMKJGNPDMDF>, IBufferMessage
	{
		// Token: 0x17000A79 RID: 2681
		// (get) Token: 0x06002438 RID: 9272 RVA: 0x000664F0 File Offset: 0x000646F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CMKJGNPDMDF> Parser
		{
			get
			{
				return CMKJGNPDMDF._parser;
			}
		}

		// Token: 0x17000A7A RID: 2682
		// (get) Token: 0x06002439 RID: 9273 RVA: 0x000664F7 File Offset: 0x000646F7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CMKJGNPDMDFReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000A7B RID: 2683
		// (get) Token: 0x0600243A RID: 9274 RVA: 0x00066509 File Offset: 0x00064709
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CMKJGNPDMDF.Descriptor;
			}
		}

		// Token: 0x0600243B RID: 9275 RVA: 0x00066510 File Offset: 0x00064710
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CMKJGNPDMDF()
		{
		}

		// Token: 0x0600243C RID: 9276 RVA: 0x00066523 File Offset: 0x00064723
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CMKJGNPDMDF(CMKJGNPDMDF other) : this()
		{
			this.key_ = other.key_;
			this.value_ = other.value_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600243D RID: 9277 RVA: 0x00066554 File Offset: 0x00064754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CMKJGNPDMDF Clone()
		{
			return new CMKJGNPDMDF(this);
		}

		// Token: 0x17000A7C RID: 2684
		// (get) Token: 0x0600243E RID: 9278 RVA: 0x0006655C File Offset: 0x0006475C
		// (set) Token: 0x0600243F RID: 9279 RVA: 0x00066564 File Offset: 0x00064764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Key
		{
			get
			{
				return this.key_;
			}
			set
			{
				this.key_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17000A7D RID: 2685
		// (get) Token: 0x06002440 RID: 9280 RVA: 0x00066577 File Offset: 0x00064777
		// (set) Token: 0x06002441 RID: 9281 RVA: 0x0006657F File Offset: 0x0006477F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double Value
		{
			get
			{
				return this.value_;
			}
			set
			{
				this.value_ = value;
			}
		}

		// Token: 0x06002442 RID: 9282 RVA: 0x00066588 File Offset: 0x00064788
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CMKJGNPDMDF);
		}

		// Token: 0x06002443 RID: 9283 RVA: 0x00066598 File Offset: 0x00064798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CMKJGNPDMDF other)
		{
			return other != null && (other == this || (!(this.Key != other.Key) && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.Value, other.Value) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002444 RID: 9284 RVA: 0x000665F0 File Offset: 0x000647F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Key.Length != 0)
			{
				num ^= this.Key.GetHashCode();
			}
			if (this.Value != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.Value);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002445 RID: 9285 RVA: 0x00066655 File Offset: 0x00064855
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002446 RID: 9286 RVA: 0x0006665D File Offset: 0x0006485D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002447 RID: 9287 RVA: 0x00066668 File Offset: 0x00064868
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Key.Length != 0)
			{
				output.WriteRawTag(10);
				output.WriteString(this.Key);
			}
			if (this.Value != 0.0)
			{
				output.WriteRawTag(17);
				output.WriteDouble(this.Value);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002448 RID: 9288 RVA: 0x000666D0 File Offset: 0x000648D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Key.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Key);
			}
			if (this.Value != 0.0)
			{
				num += 9;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002449 RID: 9289 RVA: 0x0006672C File Offset: 0x0006492C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CMKJGNPDMDF other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Key.Length != 0)
			{
				this.Key = other.Key;
			}
			if (other.Value != 0.0)
			{
				this.Value = other.Value;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600244A RID: 9290 RVA: 0x0006678A File Offset: 0x0006498A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600244B RID: 9291 RVA: 0x00066794 File Offset: 0x00064994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 17U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Value = input.ReadDouble();
					}
				}
				else
				{
					this.Key = input.ReadString();
				}
			}
		}

		// Token: 0x04000EB7 RID: 3767
		private static readonly MessageParser<CMKJGNPDMDF> _parser = new MessageParser<CMKJGNPDMDF>(() => new CMKJGNPDMDF());

		// Token: 0x04000EB8 RID: 3768
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000EB9 RID: 3769
		public const int KeyFieldNumber = 1;

		// Token: 0x04000EBA RID: 3770
		private string key_ = "";

		// Token: 0x04000EBB RID: 3771
		public const int ValueFieldNumber = 2;

		// Token: 0x04000EBC RID: 3772
		private double value_;
	}
}
